class Clock :
    def __init__(self,hour,minute,second) -> None:
        self.hour = hour
        self.minute = minute
        self.second = second
    def __str__(self) -> str:
        return f"时{self.hour}分{self.minute}秒{self.second}"
    def __repr__(self) :
        return f"Clock({self.hour},{self.minute},{self.second})"
c1 = Clock(10,20,30)
print(c1)
c2 = eval(repr(c1))
c2.hour = 1
print(c2)